﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Mvc3Learning.Models;

namespace Mvc3Learning.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            RestaurantReview view =new RestaurantReview();
            view.Name = "Don Carlos";
            view.Rating = 9;

            return View(view);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
